<?php 
	require_once ('checks.php');
	require_once ('Database.php');
	$db= new DB();
	$arr = $db->findName("articles");
	$n= count($arr); 
?>

			<table border='1' width="400">
				
							<?php
								for ($i=0;$i<$n;$i++) {
									echo "<tr>";
									echo "	<td><center>".$arr[$i]."</center></td>";
									echo "	<td width='35'><a href='?page=edit_article&article_name=".$arr[$i]."'><img src='images/edit.jpg' width='35'></a></td>";
									echo"</tr>";
								}
							?>

			</table>
